package com.ls.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ls.controller.holiday.model.AddHolidayModel;
import com.ls.controller.holiday.model.EditHolidayModel;
import com.ls.controller.holiday.model.QueryHolidayModel;
import com.ls.entity.Holiday;
import com.ls.utils.ResultData;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author pengyu
 * @since 2024-06-28
 */
public interface IHolidayService extends IService<Holiday> {
    /** 新增节假日 */
    ResultData add(AddHolidayModel model);
    /** 更新节假日 */
    ResultData edit(EditHolidayModel model);
    /** 删除节假日 */
    ResultData del(Long holidayId);
    /**查询节日是否能直接删除或者编辑 type为0删除，1为编辑*/
    ResultData getHolidayStatus(Long holidayId,Integer type);
    /** 查询节假日 */
    ResultData getHoliday(Long categoryId,Long customerId,Integer showBirth,Integer showExist,Integer categoryType);
    /** 查询app 节假日 */
    ResultData getAppHoliday(Long categoryId);
    /**查询节日动态*/
    ResultData getHolidayDynamic(QueryHolidayModel model);
    /**查询未设置生日的数量*/
    ResultData getNotSetBirthdayCount();
    /**查询当月节日数量*/
    ResultData getHolidayCount();
    /**查询节日详情*/
    ResultData getDetail(Long holidayId);
}
